﻿using Max.PH5_2103A.Shopping.Frame.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2103A.Shopping.Frame.IRepository
{
    /// <summary>
    /// 工作单元接口
    /// </summary>
    public interface IUnitOfWork
    {
        /// <summary>
        /// 将内存中的改变提交到数据库
        /// </summary>
        /// <returns></returns>
        int SaveChanges();

        /// <summary>
        /// 获取自己定义的上下文对象
        /// </summary>
        /// <returns></returns>
        MyDbContext GetContext();

    }
}
